package chapter4.No4_1_使用reentrantLock类.demo11;

/**
 * Created by Administrator on 2016/11/21.
 */
public class ThreadA extends Thread {
    Service s;

    public ThreadA(Service s) {
        this.s = s;
    }

    @Override
    public void run() {
        System.out.println("线程"+Thread.currentThread().getName()+"开始运行!");
        s.methodA();
    }
}
